export const shuffle = (array: number[]) => {
  for (let i = array.length - 1; i >= 0; i--) {
    const pos = Math.floor(Math.random() * i);
    const temp = array[i];

    array[i] = array[pos];
    array[pos] = temp;
  }
  return array;
};
